@model OA.Model.MailTemplate
@{
    ViewBag.Title = "系统邮件模板";
}
@section head{
   <link href="@Url.Content("~/Content/JavaScript/packages/kindeditor-4.1.7/themes/chat/chat.css")" rel="stylesheet" type="text/css" />
   <script src="@Url.Content("~/Content/JavaScript/packages/kindeditor-4.1.7/kindeditor-min.js")"  type="text/javascript"></script>
   <script src=""@Url.Content("~/Content/JavaScript/packages/kindeditor-4.1.7/lang/zh_CN.js")" type="text/javascript"></script>
   <script type="text/javascript">
       var editor;
       $(document).ready(function () {
           $('.btnSubmit').click(function () {
               editor.sync();
               ajax_submit('#content', undefined, function (r) {
                   if (r.success) {
                       CloseMe();
                   }
               });
               return false; //兼容FF
           });
           editor = KindEditor.create('#Body', {
               resizeType: 0
                , height: '350px'
                , width: 'auto'
                , themeType: 'chat'
                , urlType: 'absolute'
                , uploadJson: '@Url.Action("KeUpload", "Tools")?isWatermark=false'
           });
       });
   </script>
}
@section body{
<body>
   <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',border:false">
            <div class="navigation">
                <div class="left">
                   @ViewBag.CurrentPath 修改
                </div>
                <a href="javascript:CloseMe();" class="back">后退</a>
            </div>
            <div class="expand_margin"></div>
        </div> 
        <div id='content' data-options="region:'center',border:false" >
             <div class="easyui-tabs" data-options="plain:true,border:false,fit:true">
                <div title="编辑邮件模板信息">  
                    <table class="form_table">
                        <col width="120px"/>
                        <tbody>
                            <tr>
                                <th>编号：</th>
                                <td><input type="text" name="Code" value="@Model.Code" class="easyui-validatebox imedisable" data-options="required:true,validType:['length[1,32]','Account']" /></td>
                            </tr>
                            <tr>
                                <th>邮件标题：</th>
                                <td><input type="text" name="Name" value="@Model.Name"  style=" width:200px" class="easyui-validatebox" data-options="required:true,validType:['length[1,64]']"  /></td>
                            </tr>
                            <tr>
                                <th>邮件标题：</th>
                                <td><input type="text" name="Subject" value="@Model.Subject"  style=" width:300px" class="easyui-validatebox" data-options="required:true,validType:['length[1,256]']"  /></td>
                            </tr>
                            <tr>
                                <th>备注：</th>
                                <td>
                                   <input type="text" name="Notes" value="@Model.Notes"  class="easyui-validatebox" data-options="required:false,validType:['length[1,256]']" style="width:400px;" />
                                </td>
                            </tr>
                            <tr>
                                <th>内容</th>
                                <td>
                                   <textarea name="Body" id="Body">@Model.Body</textarea>
                                </td>
                            </tr>
                            <tr>
                               <th></th>
                               <td>
                                  <input type="submit" value="提交保存"   class="btnSubmit" />
                               </td>
                            </tr>
                        </tbody>
                    </table>
                </div>          
            </div>
        </div>
    </div>
</body>
}
